STEP 1: We started this program for you! Now let's create a variable to store the area of the rectangle.

  • In LOGIC, click on .
  • Drag in Integer Variable on the line directly below the line that creates my_rect.
  • Change the variable name from my_var to rect_area.
  • Click Run to run your code! Then click Submit and Next to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)